<h1>Listing medias</h1>

<table>
  <tr>
    <th>Nom</th>
    <th>Taille</th>
    <th>Img src</th>
    <th>Description</th>
    <th>Details</th>
    <th>Fichier</th>
    <th>Langue</th>
    <th>Nfo</th>
    <th>Url</th>
    <th>Local path</th>
    <th>Dl count</th>
    <th>Category</th>
    <th>User</th>
  </tr>

<% for media in @medias %>
  <tr>
    <td><%=h media.nom %></td>
    <td><%=h media.taille %></td>
    <td><%=h media.img_src %></td>
    <td><%=h media.description %></td>
    <td><%=h media.details %></td>
    <td><%=h media.fichier %></td>
    <td><%=h media.langue %></td>
    <td><%=h media.nfo %></td>
    <td><%=h media.url %></td>
    <td><%=h media.local_path %></td>
    <td><%=h media.dl_count %></td>
    <td><%=h media.category_id %></td>
    <td><%=h media.user_id %></td>
    <td><%= link_to 'Show', category_media_path(media.category,media) %></td>
    <td><%= link_to 'Edit', edit_media_path(media) %></td>
    <td><%= link_to 'Destroy', media, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New media', new_media_path %>
